gtkgesturezoom: Do not check touchpad phase on generic events
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 10 Jun 2020 12:27:14 +0000 (14:27 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 10 Jun 2020 12:30:58 +0000 (14:30 +0200)
commitba988cd8999c84f9cce13cc4fe5487e05291ab26
tree812e42a41e4fddea3cbcc7d2377e15a60671c558
parentd2235b71f372a012468b18d0ea5f59613a20464a
gtkgesturezoom: Do not check touchpad phase on generic events

This gesture handles both individual touch events and touchpad gesture
events, and was checking the touchpad phase in generic code paths. This
is dubious since event methods error out on the wrong GdkEventTypes.

Check the touchpad gesture phase within the branch handling touchpad
events, and make it clear which is the gesture phase of all that we are
ignoring.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2825
gtk/gtkgesturezoom.c